<!doctype html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>编辑待办事项</title>
</head>
<body>
<form action="/todo/update" method="post">
    <div class="field">
        <input type="hidden" name="id" value="${todo.id}">
        <label for="content">内容</label>
        <input type="text" id="content" name="content" placeholder="请输入待办事项" value="${(todo.content)!""}"/>
    </div>
    <div class ="field">
        <select name="complete" >
            <option value="false">未完成</option>
            <option value="true" <#if todo.complete>selected</#if>>已完成</option>
        </select>
    </div>
    <div class ="field">
        <input type="submit" value="保存">
    </div>
</form>
</body>
</html>